
<script setup lang="ts">
import { useAuthStore } from '@/store/auth'
const authStore = useAuthStore()

const loginClick = async ()=>{
    await authStore.login({username: 'admin', password: '123456'})
    
}
</script>
<template>
    <el-text>用户登录</el-text>
    <el-button @click="loginClick">登录</el-button>
</template>